const mongoose = require('./index');

const Musics = mongoose.model('musics', {
    mTitle: String,
    mAuthor: String,
    mUrl: String,
    mBgUrl: String,
    createdAt: {
        type: Number,
        default: (new Date().getTime() / 1000).toFixed()
    },
    updatedAt: {
        type: Number,
        default: (new Date().getTime() / 1000).toFixed()
    }
});

// 导出的是模型
module.exports = Musics;